<?php
	include('../../../public/bootrap.php');
	//$arrInfo = array();
	if($_POST){
		$category_id = _POST('id');
		
		$sql = 'SELECT * FROM tblcategory WHERE category_id = '.$category_id;
		$category = $db->fetchOne($sql);
		
		$sltCategory = getCombo('tblcategory', 'category_id', 'category_name', 'parent_id', 'Danh mục gốc', $category['parent_id'], null, null, 'input-text-medium');
		
		$arrInfo['sltcategory'] = $sltCategory;
		$arrInfo['category_name'] = $category['category_name'];
		$arrEn=json_encode($arrInfo);
		
		print_r($arrEn);
		exit;
	}